import styles from './index.less';
import { Button } from 'antd';

export default function IndexPage(props: any) {
  return (
    <div>
      <h1 className={styles.title}>Page index</h1>
      <div>
        <Button
          type="primary"
          onClick={() => props.history.push('/demo/table')}
        >
          go to table
        </Button>
      </div>
      <div>
        <Button
          type="primary"
          onClick={() => props.history.push('/demo/table2')}
        >
          go to table2
        </Button>
      </div>
      <div>
        <Button
          type="primary"
          onClick={() => props.history.push('/demo/table2/protableTest')}
        >
          go to protable
        </Button>
      </div>
      <div>
        <Button
          type="primary"
          onClick={() => props.history.push('/demo/message')}
        >
          go to Message
        </Button>
      </div>
      <div>
        <Button
          type="primary"
          onClick={() => props.history.push('/demo/netDemo')}
        >
          go to NetDemo
        </Button>
      </div>
      <div>
        <Button type="primary" onClick={() => props.history.push('/demo/form')}>
          go to form
        </Button>
      </div>
      <div></div>
    </div>
  );
}
